<?php

namespace app\common\model;

/**
 * 用户认证模型
 */
class UserAuth extends BaseModel
{
    public function getAuthStatusAttr($value)
    {
        $status = [10 => '未认证', 20 => '已认证'];
        return ['value' => $value, 'text' => $status[$value]];
    }

    /**
     * 获取认证资料
     */
    static public function getAuthDetail($user_id){
        return self::get(['user_id'=>$user_id]);
    }
}